<?php
namespace app\content\controller;
use think\admin\Controller;
use app\index\model\Banner as BannerModel;
use app\index\model\Crane;
use app\index\model\DataUser;
use app\index\model\Plan as ModelPlan;
use app\index\model\Process;
use app\index\model\Record as RecordModel;
use app\index\model\Role;
use app\index\model\Users;
use think\admin\helper\QueryHelper;

class Record  extends Controller{

     /**
     * @auth true
     * @menu true
     */
    public function index(){
        $search = input('get.');
        $this->process_list       = Process::select();

        RecordModel::mQuery()->layTable(function () {
            $this->title = '记录列表';
        }, function (QueryHelper $query) use ($search) {
            // 数据列表搜索过滤
            $query->with(['process','plan'])->append(['status_text']);
            $query->equal('process_id')->like('segment_type_no,produce_no');
        });
    }


 


}